package com.ybkj.o2o.zhuanche.manager;

import com.ybkj.o2o.zhuanche.common.DataGrid;
import com.ybkj.o2o.zhuanche.common.query.CarTypeCompanyQuery;
import com.ybkj.o2o.zhuanche.entity.CarTypeCompany;

public interface CarTypeCompanyManager {

  DataGrid<CarTypeCompany> findAll(int page, int rows);

  CarTypeCompany findByCompanyIdAndCarTypeId(CarTypeCompanyQuery carTypeCompanyQuery);

  DataGrid<CarTypeCompany> findByCarTypeId(CarTypeCompanyQuery carTypeCompanyQuery);

  void create(Long carTypeId, Long companyId, String companyName, Integer sequence,
      Long tangzuAreaId, Long rizuAreaId, Long banrizuAreaId, Long jiejiAreaId, Long songjiAreaId,
      Long jiezhanAreaId, Long songzhanAreaId, String tangzuAreaName, String rizuAreaName,
      String banrizuAreaName, String jiejiAreaName, String songjiAreaName, String jiezhanAreaName,
      String songzhanAreaName, String appKey);

  void update(Long carTypeId, Long companyId, Long tangzuAreaId, Long rizuAreaId,
      Long banrizuAreaId, Long jiejiAreaId, Long songjiAreaId, Long jiezhanAreaId,
      Long songzhanAreaId, String tangzuAreaName, String rizuAreaName, String banrizuAreaName,
      String jiejiAreaName, String songjiAreaName, String jiezhanAreaName, String songzhanAreaName,
      String appKey);

  void delete(Long carTypeCompanyId, String appKey);

}
